home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Gadgets / EditText.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-29  |  1.4 KB  |  64 lines  |  [TEXT/CWIE]

  1. /* EditText.h */
  2.  
  3. #pragma once
  4.  
  5. #include "AMWindow.h"
  6.  
  7. struct AMDoc;
  8. struct DDocData;
  9. struct GadgetsEngine;
  10.  
  11. //----------
  12. struct EditText {
  13.     AMWindow        super;
  14.  
  15.     DDocData*        mData;
  16.     ControlHandle    mSmallHandle;
  17.     ControlHandle    mLargeHandle;
  18.     ControlHandle    mX12345Handle;
  19.     ControlHandle    mX12345e6Handle;
  20.     ControlHandle    mPasswordHandle;
  21.     ControlHandle    mDateHandle;
  22.     ControlHandle    mTimeHandle;
  23.     ControlHandle    mStyledHandle;
  24. };
  25. typedef struct EditText EditText;
  26.  
  27. //----------
  28. EditText*        NewEditText ();
  29. void    DeleteEditText        (EditText*        window);
  30.  
  31. //----------
  32. //static:
  33. void    EditText_Create    (AMDoc*            inDoc,
  34.                              DDocData*        inData);
  35.  
  36. //public:
  37. void    EditText_Init        (EditText*    self);
  38. void    EditText_Free        (EditText*    self);
  39.  
  40. void    EditText_Open        (EditText*    self,
  41.                              AMDoc*            inDoc,
  42.                              DDocData*        inData);
  43. void    EditText_Close    (EditText*    self);
  44.  
  45. void    EditText_Track        (EditText*    self,
  46.                                  ControlHandle    whichControl,
  47.                                   short             whichPart,
  48.                                  Point            where);
  49. void    EditText_MouseIn        (EditText*    self,
  50.                                  Point            where,
  51.                                  short            modifiers);
  52. void    EditText_TypeIn        (EditText*    self,
  53.                                  char            ch);
  54. void    EditText_ExitCurField    (EditText*    self);
  55. void    EditText_DataChanged    (EditText*    self,
  56.                                  long            inDataID);
  57. void    EditText_Resize        (EditText*    self);
  58. void    EditText_Scroll        (EditText*    self,
  59.                                  short            newValue,
  60.                                  short            oldValue);
  61.  
  62. Boolean        EditText_DoCommand    (EditText*    self,
  63.                                      long            inCommand);
  64.